package inner_class.static_inner_class;

/**
 * @Package: inner_class.static_inner_class
 * @ClassName: StaticInnerClass
 * @Author: x2606
 * @CreateTime: 2022/3/12 16:53
 * @Description: 静态成员类
 */

public class StaticInnerClass {
    public static void main(String[] args) {
        Outer outer = new Outer();
        outer.show();
    }
}
class Outer{
    private static String name="jack";
    public static class Inner{
        public void say(){
            System.out.println(name);
        }
    }
    public void show(){
        Inner inner = new Inner();
        inner.say();
    }
}
